package com.jianan.mis.service;

import java.util.List;

import com.jianan.mis.data.dao.InternalOrganizationDao;
import com.jianan.mis.data.domain.InternalOrganization;

public class InternalOrganizationServiceImpl implements InternalOrganizationService {

	private InternalOrganizationDao internalOrganizationDao;
	
	public List<InternalOrganization> getAll() {
		return internalOrganizationDao.getAll(InternalOrganization.class, "id", true);
	}

	public void save(InternalOrganization internalOrganization) {
		internalOrganizationDao.save(internalOrganization);
	}

	public void update(InternalOrganization internalOrganization) {
		internalOrganizationDao.saveOrUpdate(internalOrganization);
	}

	public void remove(InternalOrganization internalOrganization) {
		internalOrganizationDao.remove(internalOrganization);
	}

	public void setInternalOrganizationDao(
			InternalOrganizationDao internalOrganizationDao) {
		this.internalOrganizationDao = internalOrganizationDao;
	}

}
